import request from '@/utils/request'

/**
 * 查询
 * @param {Object} params
 */
export function dataApi(params) {
    return request({
        url: '/api/orders/data',
        method: 'get',
        params
    })
}


// 统计数量
export function orderStatistics(){
  return request({
    url: '/api/orders/statistic',
    method: 'get'
  })
}


/** 根据主键查询
 * @param {Object} id
 */
export function findByIdApi(id) {
    return request({
        url: '/api/orders/'+id,
        method: 'get'
    })
}
